﻿@using System.Web.Mvc;

@helper Css(string cssName, UrlHelper url){
	<link type="text/css" rel="stylesheet" href="@url.Content("~/Content/"+cssName)"/>
}

@helper Script(string scriptName,UrlHelper url){
   <script src="@url.Content("~/Scripts/"+scriptName)" type="text/javascript"></script>
}

@helper pngHack(UrlHelper url){
   <!--[if lt IE 7]><script type="text/javascript" src="@url.Content("~/Scripts/DDpng-min.js")"></script><script type="text/javascript">DD_belatedPNG.fix('.png');</script><![endif]-->
}

@helper Link(string name){
    <a href="#">@name</a>
}

@helper Link(string name, string classes){
	if (!String.IsNullOrEmpty(classes))
	{
		<a href="#" class="@classes">@name</a>
	}
    else
	{
		@Content.Link(name);
	}
}

@helper Pic(string picName,UrlHelper url){
	<img src="@url.Content("~/Content/images/"+picName)" alt=""/>
}

@helper Pic(string picName,float width,float height,UrlHelper url){
	<img src="@url.Content("~/Content/images/"+picName)" alt="" width="@width" height="@height"/>
}